package uk.ac.cam.echo.messages;

import java.util.List;

import uk.ac.cam.echo.messages.CheckInMessage;

/**
 * @author Tom Smith
 */
public class SecurityMessage extends Message {

	private static final long serialVersionUID = 1L;
	
	private boolean m_Allowed;
	private List<CheckInMessage> m_CheckIns;
	private String m_FacebookID;
	private String m_Forename;
	private String m_Surname;
	private String m_UserType;

	public SecurityMessage(String rfid) {
		super(rfid);
	}
	
	public boolean getAllowed() {
		return this.m_Allowed;
	}
	
	public List<CheckInMessage> getCheckIns() {
		return this.m_CheckIns;
	}
	
	public String getFacebookID() {
		return this.m_FacebookID;
	}
	
	public String getForename() {
		return this.m_Forename;
	}
	
	public String getSurname() {
		return this.m_Surname;
	}
	
	public String getUserType() {
		return this.m_UserType;
	}
	
	public void setCheckIns(List<CheckInMessage> c) {
		this.m_CheckIns = c;
	}
	
	public void setFacebookID(String id) {
		this.m_FacebookID = id;
	}
	
	public void setForename(String s) {
		this.m_Forename = s;
	}
	
	public void setSurname(String s) {
		this.m_Surname = s;
	}
	
	public void setUserType(String s) {
		this.m_UserType = s;
		if (this.m_UserType.toUpperCase().equals("GUEST")) m_Allowed = true;
	}
}
